package com.syni.mdd.yhd.common.all.entity.bo.user;

import com.syni.mdd.yhd.common.all.constants.ResultCode;
import lombok.Data;

/**
 * @className CheckUserBo
 * @description TOO
 * @Author cfx
 * @DATE 2020/4/17 17:22
 * @VERSION 1.0
 **/
@Data
public class CheckUserBo {
    private String userId;
    private String token;
    private String checkStatus = ResultCode.CODE_ERROR;
    private String msg;

    public CheckUserBo(String userId, String token, String checkStatus) {
        this.userId = userId;
        this.token = token;
        this.checkStatus = checkStatus;
    }

    public CheckUserBo(){

    }

    public Integer getIntegerByUserId(){
        if(this.userId != null) {
            return Integer.parseInt(this.userId.toString());
        }
        return null;
    }
}
